package net.betou.cms.dao.main;

import java.util.List;

import net.betou.cms.entity.main.CmsModelItem;
import net.betou.common.hibernate3.Updater;

public interface CmsModelItemDao{
	public List< CmsModelItem > getList( Integer modelId, boolean isChannel, boolean hasDisabled );
	
	public List< CmsModelItem > getList( Integer modelId, boolean isChannel, boolean hasDisabled, String searchValue, String searchProperty, String orderProperty, String orderDirection );

	public CmsModelItem findById( Integer id );

	public CmsModelItem save( CmsModelItem bean );

	public CmsModelItem updateByUpdater( Updater< CmsModelItem > updater );

	public CmsModelItem deleteById( Integer id );
}